<?php

namespace app\validate;

use share\validate\SceneValidate;

class SendTemplateValidate extends SceneValidate{
    protected $rule = [ 
        'id' => 'require|integer',      
        'name' => 'require|length:1,60',
        'no' => 'require|length:1,60',
        'send_config_id' => 'require|integer',       
        'title' => 'require|length:1,100',
        'scene' => 'require|length:1,30',
        'type' => 'require|integer',
        'language' => 'require|integer',
    ];  
    
    protected $sceneRules = [
        'list' => [
            'name' => 'length:1,60',
            'no' => 'length:1,60',
            'title' => 'length:1,100',
            'scene' => 'length:1,30',
            'type' => 'integer',
            'language' => 'integer',
        ],
    ];
  

    protected $scene = [      
        'list' => ['name','no','title','scene','type','language'],
        'del' => ['id'],
    ];
}